import rospy
from proj_talk.msg import tes

def callback(data):
    rospy.loginfo("get: str: %s num: %f", data.str,data.num)
    
def listener():
    rospy.init_node('listener', anonymous=True)
    rospy.Subscriber("chatter", tes, callback)
    rospy.spin()

if __name__ == '__main__':
    listener()

